package com.wondertek.poms.core.service;

import com.wondertek.poms.common.service.IService;
import com.wondertek.poms.dao.po.EquityNode;
import com.wondertek.poms.dao.po.EquityTree;
import com.wondertek.poms.dao.pojo.EquityNodePojo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface IEquityTreeService extends IService<EquityTree,Long> {

    Page<EquityTree> findAll(int page, int rows, String sord, String sidx);

    /**
     *<p><b>Title:</b> getAllEquityNodesByTreeId </p>
     *<p><b>Description:</b> 获取权益节点树 </p>
     *@author gaozhengxing gaozhenghang@wondertek.com.cn
     *@date 2021/2/7 15:46
     *@param treeId
     *@param
     */
    EquityNodePojo getAllEquityNodesByTreeId(Long treeId,boolean valid);


    void updateTreeDepth(Long treeId);

    void deleteEquityTree(Long treeId);

    Map<String, Object> getEquityTreeMap(Long treeId);
}
